import 'package:myapp/dio/config/dio_config.dart';
import 'package:myapp/dio/dio_client.dart';
import 'package:myapp/dio/model/hitokoto.dart';

DioClient otherDioClient = DioClient(OtherDioConfig.baseOptions);

class Other {
  static Future<Hitokoto> getHitokoto() async {
    var jsonData = await otherDioClient.get("https://v1.hitokoto.cn?c=i");
    return Hitokoto.fromJson(jsonData);
  }
}
